<template>
	<view class="dd">
		<view style="margin-left: 20rpx;flex: 1;">
			<view style="float: left;">
				<u-avatar :src="get_img+adviser.header"></u-avatar>
			</view>
			<view style="flex: 1;margin: 28rpx 0 0 0;float: right;margin-right: 40rpx;">{{adviser.name}}</view>
		</view>
		<view class="dd1"  @click="call_custom">
			<u-button shape="circle" size="small" type="primary" text="电话咨询"></u-button>
		</view>
		<view class="dd1" @click="chat">
			<u-button shape="circle" size="small" color="green" type="primary" text="在线联系"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		name: "bottom_nav",
		props: {
			adviser: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {
				disabled: true,
				get_img: this.$get_img,
				src: "http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg",
				
			}
		},
		mounted() {
		},
		methods:{
			chat() {
				uni.navigateTo({
					url: "../chat/chat?id=" + this.adviser.uid
				})
			},
			call_custom() {
					
				uni.makePhoneCall({
					phoneNumber: this.adviser.phone
				})
			},
			goCustom() {
				
				uni.navigateTo({
					url: '../chat/chat?id=' + this.adviser.uid
				})
			},
		}
	}
</script>
<style>
	.dd {
		background-color: #fff;
		z-index: 999;
		width: 750rpx;
		height: 110rpx;
		position: fixed;
		bottom: 0;
		display: flex;
		border-top: 1px solid #999999;
		
	}

	.dd1 {
		flex: 1;
		/* height: 60rpx; */
		/* width: 80rpx; */
		margin: 23rpx 15rpx 10rpx 15rpx;

	}
</style>
